package cn.melonlib.nars.names.model.entity;

import cn.melonlib.cores.commons.model.entity.TenantRecordEntity;
import cn.melonlib.cores.model.anno.ModelComment;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.Type;

import javax.persistence.*;

@Data
@EqualsAndHashCode(callSuper = true)
@Entity(name = "MelonLink")
@Table(name = "nars_link")
@ModelComment("内部连接(快捷方式)")
public class MelonLink extends MelonNames {

    @ModelComment(value = "连接路径",required = true)
    @Column@Lob@Basic(fetch = FetchType.LAZY)@Type(type = "org.hibernate.type.TextType")
    private String linkPath;
}
